import productOpt from '@/biz/option/product.js'
import tool from '@/common/tool'
let _this = null

function productInfo(info) {
  return [
    productOpt.createSelectTree({
      title: '关联产品',
      key: 'productId',
      multiple: true,
      hid: info.housesId,
      productIds: tool.deepClone(info.productId),
      maxTagCount: 3,
      disabled: _this.isCheck,
      data: {},
      noRequired: true
    })
  ]
}

function options(vm) {
  _this = vm
  return [productInfo(_this.info)]
}
export default {
  options
}
